import type { BannerModel } from '../models/bannerModel';
import instance from '../utils/request';

interface data<T> {
  status: number;
  msg: string;
  data: T;
}

export const getBannerList = (): Promise<data<BannerModel[]>> => {
  return instance.get('/banner/list');
};
